package com.guotd.springbootdemo1.controller;

import com.guotd.springbootdemo1.pojo.Result;
import com.guotd.springbootdemo1.pojo.User;
import com.guotd.springbootdemo1.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;

    /*public Result login(){
        User u = userService.selectUser();
        if (u!=null){
            return Result.success();
        }
        else {
            return Result.error("用户名或密码错误！");
        }
    }*/
}
